﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ArasPLMExtend
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            ArasConnection.PublicState.PLMUrl = System.Configuration.ConfigurationSettings.AppSettings.Get("ArasUrl");
            ERPConnection.PublicState.dbSource = System.Configuration.ConfigurationSettings.AppSettings.Get("ERPDataSource");
            ERPConnection.PublicState.dbUserID = System.Configuration.ConfigurationSettings.AppSettings.Get("ERPDataUser");
            ERPConnection.PublicState.dbPass = System.Configuration.ConfigurationSettings.AppSettings.Get("ERPDataPass");
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new FrmLogin());
            Application.Run(new FrmMain());

            //010304A600->
        }
    }
}
